From: Pablo Ariño Muñoz Date: Wed, 26 Feb 2025 08:11:54 +0000 (+0100) Subject: fixed formatting mistakes and removed unnecessary include X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~24^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=ce38a28a2076eed3b5012595d8a35b64b69a5e78;p=nextcloud-desktop.git fixed formatting mistakes and removed unnecessary include Signed-off-by: Pablo Ariño Muñoz --- diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 130770223..fa4fa9bd2 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -21,7 +21,6 @@ #include "owncloudsetupwizard.h" #include "accountmanager.h" #include "guiutility.h" -#include #if defined(BUILD_UPDATER) #include "updater/updater.h" @@ -248,6 +247,7 @@ GeneralSettings::GeneralSettings(QWidget *parent) connect(_ui->newExternalStorage, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings); connect(_ui->moveFilesToTrashCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings); connect(_ui->remotePollIntervalSpinBox, &QSpinBox::valueChanged, this, &GeneralSettings::slotRemotePollIntervalChanged); + #ifndef WITH_CRASHREPORTER _ui->crashreporterCheckBox->setVisible(false); #endif @@ -329,8 +329,7 @@ void GeneralSettings::loadMiscSettings() _ui->newExternalStorage->setChecked(cfgFile.confirmExternalStorage()); _ui->monoIconsCheckBox->setChecked(cfgFile.monoIcons()); - ; - auto interval = cfgFile.remotePollInterval(); + const auto interval = cfgFile.remotePollInterval(); _ui->remotePollIntervalSpinBox->setValue(static_cast(interval.count() / 1000)); } @@ -650,8 +649,8 @@ void GeneralSettings::customizeStyle() #endif } - -void GeneralSettings::slotRemotePollIntervalChanged(int seconds) { +void GeneralSettings::slotRemotePollIntervalChanged(int seconds) +{ if (_currentlyLoading) { return; } diff --git a/src/gui/generalsettings.ui b/src/gui/generalsettings.ui index 0662b63ac..68b53b4a8 100644 --- a/src/gui/generalsettings.ui +++ b/src/gui/generalsettings.ui @@ -185,7 +185,7 @@ - +